using System;
using System.Collections;
using System.Collections.Generic;

namespace Bridges.Model
{
	/// <summary>
	/// Email
	/// </summary>
	public class Email
	{
		#region Member Variables
		protected int _codEmail;
		protected String _enderecoEmail;

		#endregion

		#region Constructors

		public Email() { }

		public Email( String enderecoemail )
		{
			this._enderecoEmail = enderecoemail;
		}

		#endregion

		#region Public Properties

		public int Id
		{
			get {return _codEmail;}
			set {_codEmail = value;}
		}

		public String Enderecoemail
		{
			get { return _enderecoEmail; }
			set
			{
				if ( value != null && value.Length > 45)
					throw new ArgumentOutOfRangeException("Valor inv?lido para Enderecoemail", value, value.ToString());
				_enderecoEmail = value;
			}
		}


		#endregion
		
	}

}
